package examplePackage;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ExampleClassOne implements IExample, ActionListener {
	public ExampleClassOne() {}
	
    private static int j = 0;
    
	public void exampleMethod(){
    	int sum = 0;
    	while(a()<10){
    		sum += a();
    		if(sum>3)
    			b();
    	}
    	if(3>2)
    		b();
    	
    	System.out.println(sum);
    }

    private int a(){
    	j++;
    	return j;
    }
    
    private void b(){
    	a();
    	System.out.println("line");
    }
    
    public int number() {
        return 0;
    }

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		
	}
    
}
